﻿@using JPW.OnlinePaperSubmissionSystem.Authorization
<style>
    #mainGrid .k-grid-content, #mainGrid tr td {
        overflow: visible;
    }
    .current-a {
        color:rgba(254, 254, 254, 1);
        background-color:rgba(66, 138, 201, 1);
    }
</style>
<div ng-controller="tenant.views.parameterType.index as vm">
     <div class="row margin-bottom-5">
        <div class="col-xs-6">
            <div class="page-head">
                <div class="page-title">
                    <h1>
                        <span>@L("ParameterType")</span> <small>@L("ParameterType")</small>
                    </h1>
                </div>
            </div>
        </div>
    </div>
    <div class="portlet light">
        <div class="col-xs-6 clearfix">
            <div class="btn-group" data-toggle="buttons">
                <label class="btn blue active" ng-click="vm.Handover(1)">
                    <input type="radio" class="toggle"> 稿件类型
                </label>
                <label class="btn blue" ng-click="vm.Handover(2)">
                    <input type="radio" class="toggle"> 栏目类型
                </label>
                <label class="btn blue" ng-click="vm.Handover(3)">
                    <input type="radio" class="toggle"> 公告类型
                </label>
            </div>
        </div>
        <div class="col-xs-6 text-right">
            <button ng-if="vm.permissions.create" class="btn btn-primary blue" ng-click="vm.createParameterType()"><i class="fa fa-plus"></i> @L("CreateParameterType")</button>
            <button ng-if="vm.permissions.edit" class="btn btn-primary blue" ng-click="vm.editParameterType()"><i class="fa fa-pencil"></i> @L("UpdateParameterType")</button>
            <button ng-if="vm.permissions.delete" class="btn btn-primary blue" ng-click="vm.deleteParameterType()"><i class="fa fa-times"></i> @L("DeleteParameterType")</button>
        </div>
        <div class="portlet-body">
            <div busy-if="vm.loading">
                <div id="mainGrid" kendo-grid="vm.mainGrid" options="vm.mainGridOptions"></div>
            </div>
        </div>
    </div>
 </div>
